package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 钱包表
    */
@ApiModel(value="com-example-springbootdemo-entity-MemberWallet")
@TableName(value = "member_wallet")
public class MemberWallet {
    /**
     * 会员id
     */
    @TableId(value = "member_id", type = IdType.INPUT)
    @ApiModelProperty(value="会员id")
    private Long memberId;

    /**
     * 第三方平台openid
     */
    @TableField(value = "openid")
    @ApiModelProperty(value="第三方平台openid")
    private String openid;

    /**
     * 余额
     */
    @TableField(value = "residual")
    @ApiModelProperty(value="余额")
    private BigDecimal residual;

    /**
     * 冻结余额
     */
    @TableField(value = "frozen_residual")
    @ApiModelProperty(value="冻结余额")
    private BigDecimal frozenResidual;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    public static final String COL_MEMBER_ID = "member_id";

    public static final String COL_OPENID = "openid";

    public static final String COL_RESIDUAL = "residual";

    public static final String COL_FROZEN_RESIDUAL = "frozen_residual";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    /**
     * 获取会员id
     *
     * @return member_id - 会员id
     */
    public Long getMemberId() {
        return memberId;
    }

    /**
     * 设置会员id
     *
     * @param memberId 会员id
     */
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    /**
     * 获取第三方平台openid
     *
     * @return openid - 第三方平台openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置第三方平台openid
     *
     * @param openid 第三方平台openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取余额
     *
     * @return residual - 余额
     */
    public BigDecimal getResidual() {
        return residual;
    }

    /**
     * 设置余额
     *
     * @param residual 余额
     */
    public void setResidual(BigDecimal residual) {
        this.residual = residual;
    }

    /**
     * 获取冻结余额
     *
     * @return frozen_residual - 冻结余额
     */
    public BigDecimal getFrozenResidual() {
        return frozenResidual;
    }

    /**
     * 设置冻结余额
     *
     * @param frozenResidual 冻结余额
     */
    public void setFrozenResidual(BigDecimal frozenResidual) {
        this.frozenResidual = frozenResidual;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}